<template>
  <div class="aside is-placed-left is-expanded">
    <div class="aside-tools">
      <div class="aside-tools-label">
        <span>{{title}}</span>
      </div>
    </div>
    <b-menu>
      <sidebar-list :menu="menu" :base-path="basePath"/>
    </b-menu>
  </div>
</template>

<script>
import sidebarList from "./sidebarList";
import { title } from '@/config/settings'
export default {
  components:{
    sidebarList
  },
  props: {
    isSubmenuList: {
      type: Boolean,
      default: false
    },
    basePath: {
      type: String,
      default: ''
    },
    menu: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      title: title
    }
  },
  methods: {
    menuClick (item) {
      this.$emit('menu-click', item)
    }
  }
}
</script>
<style lang="scss" >

</style>
